package day15.pack3;
import day14.Teacher;
import sun.reflect.generics.tree.ReturnType;
import sun.text.resources.cldr.aa.FormatData_aa;

public class Test {

    public static void main(String[] args) {
        // 双亲委派模型
        //  老大加载器    职责：负责加载jre官方的包  jre/lib  BootStrapClassLoader
        //  老二加载器    职责：负责加载扩展包  jre/lib/ext包   ExtensionClassLoader
        //  老三加载器    职责：负责加载用户的包 ApplicationClassLoader
        Teacher teacher = new Teacher(10, "张老师");
        System.out.println(teacher.getClass().getClassLoader()); // app
        System.out.println(teacher.getClass().getClassLoader().getParent()); // app
//        System.out.println("".getClass().getClassLoader());
//        FormatData_aa formatDataAa = new FormatData_aa();
//        System.out.println(formatDataAa.getClass().getClassLoader());
    }
}
